/*    */ package com.zimbra.cs.imap;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.service.ServiceException.Argument;
/*    */ import com.zimbra.common.service.ServiceException.Argument.Type;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class ImapServiceException
/*    */   extends ServiceException
/*    */ {
/*    */   private static final long serialVersionUID = -8493068960356614305L;
/*    */   public static final String CANT_DELETE_SYSTEM_FOLDER = "imap.CANNOT_DELETE_SYSTEM_FOLDER";
/*    */   public static final String CANT_RENAME_INBOX = "imap.CANNOT_RENAME_INBOX";
/*    */   public static final String FOLDER_NOT_VISIBLE = "imap.FOLDER_NOT_VISIBLE";
/*    */   public static final String FOLDER_NOT_WRITABLE = "imap.FOLDER_NOT_WRITABLE";
/*    */   public static final String FOLDER_NAME = "folderName";
/*    */   
/*    */   private ImapServiceException(String message, String code, boolean isReceiversFault, ServiceException.Argument... args)
/*    */   {
/* 32 */     super(message, code, isReceiversFault, args);
/*    */   }
/*    */   
/*    */ 
/*    */ 
/*    */ 
/*    */   public static ImapServiceException CANNOT_DELETE_SYSTEM_FOLDER(String folderName)
/*    */   {
/* 40 */     return new ImapServiceException("cannot delete system folder: ", "imap.CANNOT_DELETE_SYSTEM_FOLDER", false, new ServiceException.Argument[] { new ServiceException.Argument("folderName", folderName, ServiceException.Argument.Type.STR) });
/*    */   }
/*    */   
/*    */   public static ImapServiceException CANT_RENAME_INBOX() {
/* 44 */     return new ImapServiceException("Rename of INBOX not supported", "imap.CANNOT_RENAME_INBOX", false, new ServiceException.Argument[0]);
/*    */   }
/*    */   
/*    */   public static ImapServiceException FOLDER_NOT_VISIBLE(String folderName) {
/* 48 */     return new ImapServiceException("folder not visible: ", "imap.FOLDER_NOT_VISIBLE", false, new ServiceException.Argument[] { new ServiceException.Argument("folderName", folderName, ServiceException.Argument.Type.STR) });
/*    */   }
/*    */   
/*    */   public static ImapServiceException FOLDER_NOT_WRITABLE(String folderName) {
/* 52 */     return new ImapServiceException("folder is READ-ONLY: ", "imap.FOLDER_NOT_WRITABLE", false, new ServiceException.Argument[] { new ServiceException.Argument("folderName", folderName, ServiceException.Argument.Type.STR) });
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/imap/ImapServiceException.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */